/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "项目预算模板与项目关系表",TableName = "tb_project_fundingsubject_realition")]
    public partial class tb_project_fundingsubject_realition:BaseEntity
    {
       /// <summary>
       ///项目预算模板与项目关系表主键
       /// </summary>
       [Key]
       [Display(Name ="项目预算模板与项目关系表主键")]
       [MaxLength(64)]
       [Column(TypeName= "nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Id { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();

        /// <summary>
        ///经费模板Id
        /// </summary>
        [Display(Name ="经费模板Id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string templateId { get; set; }

       /// <summary>
       ///经费科目Id
       /// </summary>
       [Display(Name ="经费科目Id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string subjectId { get; set; }

       /// <summary>
       ///项目Id
       /// </summary>
       [Display(Name ="项目Id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string projectId { get; set; }

       /// <summary>
       ///专项经费
       /// </summary>
       [Display(Name ="专项经费")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal directFunding { get; set; }

       /// <summary>
       ///配套经费
       /// </summary>
       [Display(Name ="配套经费")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? overheadFunding { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string? creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
        public DateTime? createDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
        public string? modifer { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
        public DateTime? modiferTime { get; set; }

       
    }
}